package com.home.qh.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.home.qh.dao.KindPackageDao;
import com.home.qh.model.KindPackage;
import com.home.qh.service.KindPackageManager;

/**
 * Implementation of RoleManager interface.
 *
 * @author <a href="mailto:dan@getrolling.com">Dan Kibler</a>
 */
@Service("kindPackageManager")
public class KindPackageManagerImpl extends GenericManagerImpl<KindPackage, Long> implements KindPackageManager {
	KindPackageDao kindPackageDao;

    @Autowired
    public KindPackageManagerImpl(KindPackageDao kindPackageDao) {
        super(kindPackageDao);
        this.kindPackageDao = kindPackageDao;
    }

	public List<KindPackage> getKindPackageByCodeAndName(String kindPackageCode,
			String kindPackageName) {
		return kindPackageDao.getKindPackageByCodeAndName(kindPackageCode, kindPackageName);
	}

	public List<KindPackage> getKindPackageByKindPackage(KindPackage kindPackage, String sort, boolean desc, int startResult, int maxResults) {
		return kindPackageDao.getKindPackageByKindPackage(kindPackage, sort, desc, startResult, maxResults);
	}

}